// 定义变量
@primary-color: #1890ff;
@success-color: #52c41a;
@error-color: #f5222d;
@text-color: rgba(0, 0, 0, 0.85);
@text-color-secondary: rgba(0, 0, 0, 0.65);
@border-color: #d9d9d9;
@background-color: #fafafa;
@border-radius: 4px;
@padding-base: 20px;
@margin-base: 15px;
@font-size-base: 14px;
@font-size-lg: 16px;

.upload-card {
  margin: 20px auto;
  max-width: 800px;

  .ant-card-head-title {
    font-weight: 500;
  }
  .upload-title{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    h5{
      margin-right: 6px;
    }
  }
}

.upload-area {
  padding: @padding-base;
  border: 1px dashed @border-color;
  border-radius: @border-radius;
  background-color: @background-color;
  text-align: center;
  .file-info{
    margin-top: 20px;
  }
  .file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: @margin-base;

    .file-name {
      font-size: @font-size-lg;
      font-weight: 500;
      color: @text-color;
      word-break: break-all;
    }

    .file-size {
      font-size: @font-size-base;
      color: @text-color-secondary;
    }
  }

  .progress-container {
    margin-bottom: @margin-base;

    .upload-progress {
      width: 100%;
      margin-bottom: 8px;
    }

    .progress-text {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: @font-size-base;

      .upload-speed {
        color: @text-color-secondary;
      }
    }
  }

  .upload-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: @margin-base;
  }

  .error-message {
    color: @error-color;
    font-size: @font-size-base;
    margin-top: 10px;
  }

  .success-message {
    color: @success-color;
    font-size: @font-size-base;
    margin-top: 10px;
  }
}
